package org.wsdx.Entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Dishes implements Serializable,Comparable<Dishes> {
	/**
		 * 
		 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private String type;
	private double price;
	private String discreption;
	private List<String> l_images;
	private Date birthTime;
	private boolean isAvailable;
	private int sellCount;
	private List<Comment> l_commentes;
	private List<String> L_categories;

	public Dishes() {

	}

	public Dishes(String id, String name, String type, double price, String discreption, List<String> l_images,
			Date birthTime, boolean isAvailable, int sellCount, List<Comment> l_commentes, List<String> l_categories) {
		super();
		this.id = id;
		this.name = name;
		this.type = type;
		this.price = price;
		this.discreption = discreption;
		this.l_images = l_images;
		this.birthTime = birthTime;
		this.isAvailable = isAvailable;
		this.sellCount = sellCount;
		this.l_commentes = l_commentes;
		L_categories = l_categories;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getDiscreption() {
		return discreption;
	}

	public void setDiscreption(String discreption) {
		this.discreption = discreption;
	}

	public List<String> getL_images() {
		return l_images;
	}

	public void setL_images(List<String> l_images) {
		this.l_images = l_images;
	}

	public Date getBirthTime() {
		return birthTime;
	}

	public void setBirthTime(Date birthTime) {
		this.birthTime = birthTime;
	}

	public boolean isAvailable() {
		return isAvailable;
	}

	public void setAvailable(boolean isAvailable) {
		this.isAvailable = isAvailable;
	}

	public int getSellCount() {
		return sellCount;
	}

	public void setSellCount(int sellCount) {
		this.sellCount = sellCount;
	}

	public List<Comment> getL_commentes() {
		return l_commentes;
	}

	public void setL_commentes(List<Comment> l_commentes) {
		this.l_commentes = l_commentes;
	}

	public List<String> getL_categories() {
		return L_categories;
	}

	public void setL_categories(List<String> l_categories) {
		L_categories = l_categories;
	}

	public boolean update() {
		return false;
	}

	public boolean delete() {
		return false;
	}

	public boolean add() {
		return false;
	}

	//用于排序的自定义排序算法
	@Override
	public int compareTo(Dishes o) {
		// TODO Auto-generated method stub
		return 0;
	}
}
